//system模块配置文件
CKEDITOR.editorConfig = function (config) {
    config.toolbar = 'Full';
    config.toolbar_Full =
        [
            {name: 'document', items: ['Source', '-']},
            {name: 'styles', items: ['Format', 'Font', 'FontSize']}, //Styles
            {name: 'clipboard', items: ['Undo', 'Redo', '-', 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord']},
            {name: 'editing', items: ['SelectAll', 'Replace', '-']},

            {
                name: 'basicstyles',
                items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat']
            },
            {
                name: 'paragraph',
                items: ['NumberedList', 'BulletedList', 'Outdent', 'Indent', 'JustifyLeft', 'JustifyCenter', 'JustifyRight']
            },
            {name: 'colors', items: ['TextColor', 'BGColor']},
            {name: 'links', items: ['Link', 'Unlink', '-', 'Blockquote']},
            {
                name: 'insert',
                items: ['imageUploader', 'remoteImage', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak'] //'Image' 单图上传,'html5video',
            },
            {name: 'tools', items: ['ShowBlocks', 'Maximize']}
        ];
    config.toolbar_Basic =
        [
            ['Bold', 'Italic', 'Underline', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', '-', 'Link', 'Unlink', '-', 'imageUploader']
        ];
    // 界面语言
    config.language = 'zh-cn';
    config.font_names = '宋体/SimSun;微软雅黑/Microsoft YaHei;' + config.font_names;
    //插件启用
    config.extraPlugins = 'imageUploader,image2,remoteImage,widget,dialog,widgetselection,clipboard,lineutils'; //html5video
    // 编辑器的z-index值
    config.baseFloatZIndex = 10000;
    //去除上传窗口多余按钮
    config.removeDialogTabs = 'image:advanced;image:Link;link:advanced;link:target;link:Link;flash:advanced;flash:Link;';
    //上传相关
    config.filebrowserHtml5videoUploadUrl = "/system/upload/file.html?opener=ckeditor&type=video";//上传视频
    config.filebrowserUploadUrl = '/system/upload/file.html?opener=ckeditor&type=file'; //文件上传
    config.filebrowserImageUploadUrl = '/system/upload/file.html?opener=ckeditor&type=image'; //图片上传
    config.remoteToLocalUrl = '/system/upload/remote2local.html'; //远程转本地

    config.allowedContent = true;
};